package com.ruoyi.news.utils;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum WechatPayUrlEnum {


    /**
     * native
     */
    NATIVE("native"),
    /**
     * app
     */
    APP("app"),
    /**
     * h5
     */
    H5("h5"),
    /**
     *  jsapi
     */
    JSAPI("jsapi"),

    /**
     *  小程序jsapi
     */
    SUB_JSAPI("sub_jsapi"),

    /**
     * APIV3下单
     */
    PAY_TRANSACTIONS("/pay/transactions/"),

    /**
     * APIV2下单
     */
    NATIVE_PAY_V2("/pay/unifiedorder"),

    /**
     * 查询订单
     */
    ORDER_QUERY_BY_NO("/pay/transactions/out-trade-no/"),

    /**
     * 关闭订单
     */
    CLOSE_ORDER_BY_NO("/pay/transactions/out-trade-no/%s/close"),

    /**
     * 申请退款
     */
    DOMESTIC_REFUNDS("/refund/domestic/refunds"),

    /**
     * 查询单笔退款
     */
    DOMESTIC_REFUNDS_QUERY("/refund/domestic/refunds/"),

    /**
     * 申请交易账单
     */
    TRADE_BILLS("/bill/tradebill"),

    /**
     * 申请资金账单
     */
    FUND_FLOW_BILLS("/bill/fundflowbill");

    /**
     * 类型
     */
    private final String type;
}
